package com.li.qiqi.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.li.qiqi.domain.Record;
import com.li.qiqi.mapper.RecordMapper;
@Service
public class RecordService{

    @Resource
    private RecordMapper recordMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return recordMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Record record) {
        return recordMapper.insert(record);
    }

    
    public int insertSelective(Record record) {
        return recordMapper.insertSelective(record);
    }

    
    public Record selectByPrimaryKey(Integer id) {
        return recordMapper.selectByPrimaryKey(id);
    }

    
    public int batchInsert(List<Record> list) {
        return recordMapper.batchInsert(list);
    }

    public List<Record> selectByDate(String month) {
       return recordMapper.selectByDate(month);
    }

    public List<Record> selectAll() {
        return recordMapper.selectAll();
    }

    public List<String> selectMonthList() {
        return recordMapper.selectMonthList();
    }
}
